/**
 * @author rocklee
 *
 * @desc 菜单相关接口
*/
import fetch from '@/utils/fetch';

/**
 * 获取page list
 * @export
 * @param params
 * @returns list
 */
export function ajaxGetEntity (params) {
    return fetch({
        url: '/generine/template/source/group/',
        method: 'get',
        params: params
    });
}
/**
 * 新建Article
 * @export
 * @param data
 * @returns res
 */
export function ajaxPostEntity (data) {
    return fetch({
        url: '/generine/template/source/group/',
        method: 'post',
        data: data
    });
}
/**
 * 修改Entity
 * @export
 * @param data: any
 * @returns res
 */
export function ajaxPutEntity (id, data) {
    return fetch({
        url: '/generine/template/source/group/' + id,
        method: 'put',
        data: data
    });
}
/**
 * 删除Entity
 * @export
 * @param data: any
 * @returns res
 */
export function ajaxDelEntity (data) {
    return fetch({
        url: '/generine/template/source/group/',
        method: 'delete',
        data: data
    });
}

/**
 * 获取所有系统
 * @export
 * @returns data
 */

export function ajaxGetAllEntity () {
    return fetch({
        url: '/generine/template/source/group/all',
        method: 'get'
    });
}

/**
 * 获取所有系统
 * @export
 * @returns data
 */

export function ajaxGetAllEntity2 () {
    return fetch({
        url: '/generine/template/source/group/all',
        method: 'get'
    });
}
